package com.yuma.factory.simple;

public class CarFactory {
    public static Car getCar(String type) {
        if ("MPV".equals(type)) {
            return new MPVCar();
        } else if ("Family".equals(type)) {
            return new FamilyCar();
        }
        return null;
    }
}
